// 首页
import {
	request
} from "@/utils/request.js"


// 获取Banner信息
export function getMpList() {
	let queryParmas = {
		state: 0,
		delFlag: 0
	}
	return request({
		url: '/Banner/mp/list',
		method: "get",
		queryParmas,
		data: queryParmas
	})
}

// 获取随机推荐
export function getDayRandom() {
	return request({
		url: '/homeBanner'
	})
}

// 获取公告栏消息
export function getMpNotice() {
	let queryParams = {
		state: 0,
		delFlag: 0
	}
	return request({
		url: '/XcxNotice/mp/list',
		method: "get",
		data: queryParams
	})
}

// 获取专题精选的数据
export function getTopicList(data) {
	let queryTopicParams = {
		status: 0,
		delFlag: 0
	}
	return request({
		url: '/ThematicSelection/mp/list',
		method: "get",
		data: queryTopicParams
	})
}

// 获取每日推荐的素材
export function getDailyRecommendationList(Index) {
	let queryParams = {
		index: Index
	}
	return request({
		url: '/Material/mp/randomList/',
		method: "get",
		data: queryParams
	})
}


// 获取素材页的推荐素材
export function getMaterialRecommendationList() {
	return request({
		url: '/Material/mp/recommend',
		method: "get",

	})
}